<div class="col-lg-8">
  <div class="panel panel-primary">
    <div class="panel-heading">岗位设置</div>
    <div class="panel-body" ng-init="send('position.index', {})">
      <p>此处仅显示已经注册登记的工作岗位。
        <a class="pull-right" ui-sref="setting.organ.position.create" title="新增岗位"><i class="fa fa-plus-square-o fa-2x"></i></a>
      </p>

      <div ui-view></div>

      <div ng-hide="position_index.length == 0">
        <table class="table table-hover">
          <tr ng-repeat="e in position_index">
            <td style="width: 5%;"><i class="fa fa-cube"></i></td>
            <td style="width: 30%;">{{e.name}}</td>
            <td style="width: 15%;">
              <a href ng-click="send('position.destroy', { id: e.id });">
                <i class="fa fa-trash text-danger pull-right"></i>
              </a>

              <a ui-sref="setting.organ.position.create(e)">
                <i class="fa fa-edit text-warning pull-right"></i>
              </a>
            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
